package annotation;

import annotation.bean.People;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class EventApp {
    public static void main(String[] args) {
        final ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("annotation\\xml\\beans.xml");

        context.start();

        final People people = (People) context.getBean("people");
        System.out.println(people);

        context.stop();
        context.close();
    }
}
